package com.circulardependence.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.circulardependence.entity.Personal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author ZARD
 * @description 针对表【personal】的数据库操作Mapper
 * @createDate 2022-08-24 21:07:11
 * @Entity com.circulardependence.entity.Personal
 */
@Mapper
@SuppressWarnings("ALL")
public interface PersonalMapper extends BaseMapper<Personal> {
    //mybatis-plus自动生成CRUD
    int insertSelective(Personal personal);

    int deleteById(@Param("id") Integer id);

    int updateNameByIdAndCamp(@Param("name") String name, @Param("id") Integer id, @Param("camp") String camp);

    Personal selectOneById(@Param("id") Integer id);

    //mybatis-plus实现分页查询
    IPage<Personal> selectAllByCampPage(Page<Personal> page,  @Param("personal") Personal personal);

}




